﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.TrainingPerson
{
	/// <summary>
	/// 实体类
	/// </summary>
	/// <![CDATA[2014-8-25 11:14:04]]>
	public class Entity : EntityBase
	{
		#region 属性
		public int nTrainingID = 0;
		public string strPersonID = "";		// 人力资源库唯一吗
		public string strJobNumber = "";		// 工号
		public string strPersonName = "";		// 姓名
		public int nHaveSignUp = 0;		// 人员是否报名
		public string strIDCard = "";		// 身份证
		public int nTime = 0;		// 在线学习时长
		public double dTheoryScore = 0;		// 理论成绩
		public double dOperationScore = 0;		// 操作成绩
		public string strTrainingName = "";		// 培训班名称
		public string strTrainingStartDate = "";		// 培训班开始时间
		public string strTrainingEndDate = "";		// 培训班结束时间
		public int nUserID = 0;		// 参加培训人员的UserID
		public string strPersonDepartmentID = "";		// 参培人员人力库单位ID
		public string strPersonDepartmentName = "";		// 参培人员人力库单位名称
		public int nInputUserID = 0;
		public int nInputDepartmentID = 0;
		#endregion 属性

		#region Get、Set属性
		/// <summary>
		/// 记录录入用户ID
		/// </summary>
		public int InputUserID
		{
			get { return nInputUserID; }
			set { nInputUserID = value; }
		}
		/// <summary>
		/// 记录录入用户所属单位ID
		/// </summary>
		public int InputDepartmentID
		{
			get { return nInputDepartmentID; }
			set { nInputDepartmentID = value; }
		}
		public int UserID
		{
			get { return nUserID; }
			set { nUserID = value; }
		}
		public string TrainingEndDate
		{
			get { return strTrainingEndDate; }
			set { strTrainingEndDate = value.Trim(); }
		}
		public string TrainingStartDate
		{
			get { return strTrainingStartDate; }
			set { strTrainingStartDate = value.Trim(); }
		}
		public string TrainingName
		{
			get { return strTrainingName; }
			set { strTrainingName = value.Trim(); }
		}
		public int TrainingID
		{
			get { return nTrainingID; }
			set { nTrainingID = value; }
		}
		public string PersonID
		{
			get { return strPersonID; }
			set { strPersonID = value.Trim(); }
		}
		public string JobNumber
		{
			get { return strJobNumber; }
			set { strJobNumber = value.Trim(); }
		}
		public string PersonName
		{
			get { return strPersonName; }
			set { strPersonName = value.Trim(); }
		}
		public int HaveSignUp
		{
			get { return nHaveSignUp; }
			set { nHaveSignUp = value; }
		}
		public string IDCard
		{
			get { return strIDCard.ToUpper(); }
			set { strIDCard = value.Trim().ToUpper(); }
		}
		public int Time
		{
			get { return nTime; }
			set { nTime = value; }
		}
		public double TheoryScore
		{
			get { return dTheoryScore; }
			set { dTheoryScore = value; }
		}
		public double OperationScore
		{
			get { return dOperationScore; }
			set { dOperationScore = value; }
		}
		/// <summary>
		/// 学习时长（按分钟计算）
		/// </summary>
		public string MinuteName
		{
			get
			{
				int nTemp;
				int nTemp1;

				nTemp = Time % 60;
				nTemp1 = Time / 60;
				if (nTemp > 0)
				{
					nTemp1 = nTemp1 + 1;
				}
				return nTemp1.ToString() + "分钟";
			}
		}
		/// <summary>
		/// 参培人员人力库单位ID
		/// </summary>
		public string PersonDepartmentID
		{
			get { return strPersonDepartmentID; }
			set { strPersonDepartmentID = value.Trim(); }
		}
		/// <summary>
		/// 参培人员人力库单位名称
		/// </summary>
		public string PersonDepartmentName
		{
			get { return strPersonDepartmentName; }
			set { strPersonDepartmentName = value.Trim(); }
		}
		#endregion Get、Set属性

		#region 构造函数
		/// <summary>
		/// 实体类构造函数
		/// </summary>
		/// <![CDATA[2014-8-25 11:14:04]]>
		public Entity()
			: base()
		{
		}
		#endregion 构造函数
	}
}
